package com.misboot.document.filter.loginInfo;


/**
 * LoginInfo 支持多租户
 *
 * @Author 湖南佐佑时代科技有限公司
 * @Version 5.4.21
 * @Email service@zuoyo.com
 * @Date 2022-06-16 13:31:39
 */
public class LoginInfoVo {
    public static final ThreadLocal<UserInfoVo> userInfoTL = new ThreadLocal();

    public LoginInfoVo() {
    }

    public static void add(UserInfoVo userInfo) {
        userInfoTL.set(userInfo);
    }

    public static String getTenantUuid() {
        return ((UserInfoVo) userInfoTL.get()).getTenantUuid();
    }

}
